  
from  graphrag.config.load_config import load_config
from pathlib import Path
PROJECT_DIRECTORY="./"
 

from graphrag.api import build_index,basic_search
 
from graphrag.index.typing.pipeline_run_result import PipelineRunResult

if __name__ == "__main__":
    import asyncio
    graphrag_config = load_config(Path(PROJECT_DIRECTORY))
    index_result: list[PipelineRunResult] = asyncio.run ( build_index(config=graphrag_config))
    print(index_result)
    print("end")